package com.qf.medicaldoctoradmin.onlineSigning.organizationHomepage.controller;

import com.qf.common.common.R;
import com.qf.medicaldoctoradmin.onlineSigning.organizationHomepage.service.OrganizationHomepageService;
import com.qf.medicaldoctoradmin.onlineSigning.organizationHomepage.vo.OrganizationHomepageVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "机构主页")
@RestController
@RequestMapping("/organizationHomepage")
@CrossOrigin
public class OrganizationHomepageController {

    @Resource
    private OrganizationHomepageService organizationHomepageService;




    @ApiOperation(value = "获取机构信息", notes = "根据机构的id,获得机构及对应的机构下的团队")
    @GetMapping ("/selectByIdGroup")
    public R organizationHomepageByIdGroup(Integer id) {
        OrganizationHomepageVo institution = organizationHomepageService.organizationHomepageById(id);
        return R.ok(institution);
    }

}
